﻿#include "algorithm_foo_plugin.h"
#include <QString>
#include <QDebug>

QString AlgorithmFooPlugin::name() const
{
    return "AlgorithmFoo";
}

void AlgorithmFooPlugin::config(const std::unique_ptr<AlgorithmConfigBase>& config)
{

}

std::unique_ptr<AlgorithmResultBase> AlgorithmFooPlugin::analyze(const double * const data, int size)
{
    auto result = std::make_unique<AlgorithmResultFoo>();

    QVector<double> vec;
    for(int i=0;i<size;i++){
        vec.append(data[i]);
    }

    result->vec = vec;

    return result;
}
